﻿@model Angel.Web.Models.MemberGroup


@{
    ViewBag.Title = "Add Member";
}
<script src="../../Scripts/jquery.validate.js" type="text/javascript"></script>
<script src="../../Scripts/jquery.validate.min.js" type="text/javascript"></script>

@using (Html.BeginForm())
{
    @Html.ValidationSummary(true)
 <div class="content-body aui-panel">
						<form>
							<table class="jiraform maxWidth">
								<tbody>
									<tr class="titlerow">
										<td colspan="2" class="jiraformheader">   
											<h3 class="formtitle">Add member to Group</h3> 
										</td>
									</tr>									
									<tr class="hidden"><td colspan="2"></td></tr>
									<tr>
                                         
										<td class="fieldLabelArea">UserName</td>
										<td class="fieldValueArea">
											@Html.TextBoxFor(model => model.UserName)
                                        <span style="color: red">@Html.ValidationMessageFor(model => model.UserName)<span>
                                        <span style="color: Red">@ViewBag.Exist</span>
                                        <span style="color: Red">@ViewBag.NotExist</span>
										</td>
									</tr>
									<tr>										
										<td class="fieldValueArea">
											 @Html.HiddenFor(m => m.GroupId, new { Value = ViewBag.Id })                                                      
										</td>
									</tr>
									<tr class="hidden">
										<td>
										<input id="editName" name="editName" value="aaaa" type="hidden"/>
										</td>
									</tr>
									<tr class="buttons-container">
										<td class="jiraformfooter">&nbsp</td>
										<td colspan="1">
											<div class="buttons-container">
												<div class="buttons">
													<input value="Add" id="update_submit" class="aui-button " type="submit"/>
													@Html.ActionLink("Cancel", "Index")
												</div>
											</div>
										</td>
									</tr>
								</tbody>
							</table>
						</form>
					</div>
}